package com.ruoyi.basebill.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * OMS调拨单对象 t_oms_transferbill
 *
 * @author ptt
 * @date 2023-02-10
 */
public class OmsTransferbill extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 调拨单号 */
    @Excel(name = "调拨单号",needMerge = true)
    private String code;

    /** 来源系统 */
    @Excel(name = "来源系统",needMerge = true)
    private String srcsys;


    @Excel(name = "来源上游平台",needMerge = true)
    private String sourceplatformcode;

    @Excel(name = "来源上游单号",needMerge = true)
    private String sourceordercode;
    /** 调拨类型 */
    @Excel(name = "调拨类型",needMerge = true)
    private String ordertype;

    /** 调出仓库编码 */
    @Excel(name = "调出仓库编码",needMerge = true)
    private String facilitycode;

    /** 调出仓库名称 */
    @Excel(name = "调出仓库名称",needMerge = true)
    private String facilityname;

    /** 调出仓库库存组织编码 */
    @Excel(name = "调出仓库库存组织编码",needMerge = true)
    private String inventoryorganizationoutcode;

    /** 调出仓库库存组织名称 */
    @Excel(name = "调出仓库库存组织名称",needMerge = true)
    private String inventoryorganizationoutname;

    /** 调出仓库成本中心编码 */
    @Excel(name = "调出仓库成本中心编码",needMerge = true)
    private String costcenteroutcode;

    /** 调出仓库成本中心名称 */
    @Excel(name = "调出仓库成本中心名称",needMerge = true)
    private String costcenteroutname;

    /** 调入仓库编码 */
    @Excel(name = "调入仓库编码",needMerge = true)
    private String tofacilitycode;

    /** 调入仓库名称 */
    @Excel(name = "调入仓库名称",needMerge = true)
    private String tofacilityname;

    @Excel(name = "调出门店编码",needMerge = true)
    private String fromshopid;

    @Excel(name ="调入门店编码",needMerge = true)
    private String toshopid;

    /** 调入仓库库存组织编码 */
    @Excel(name = "调入仓库库存组织编码",needMerge = true)
    private String inventoryorganizationentercode;

    /** 调入仓库库存组织名称 */
    @Excel(name = "调入仓库库存组织名称",needMerge = true)
    private String inventoryorganizationentername;

    /** 调入仓库成本中心编码 */
    @Excel(name = "调入仓库成本中心编码",needMerge = true)
    private String costcenterentercode;

    /** 调入仓库成本中心名称 */
    @Excel(name = "调入仓库成本中心名称",needMerge = true)
    private String costcenterentername;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd",needMerge = true)
    private Date createtime;

    /** 业务日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "业务日期", width = 30, dateFormat = "yyyy-MM-dd",needMerge = true)
    private Date tradecreatedat;

    /** 发货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发货日期", width = 30, dateFormat = "yyyy-MM-dd",needMerge = true)
    private Date deliverydate;

    /** 收货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收货日期", width = 30, dateFormat = "yyyy-MM-dd",needMerge = true)
    private Date receiptdate;

    /** 是否生成下游单据 */
    @Excel(name = "是否生成下游单据",needMerge = true)
    private Long iscreatebill;

    /** 失败原因 */
    @Excel(name = "失败原因",needMerge = true)
    private String reason;

    /** OMS调拨单分录信息 */
    @Excel(name = "调拨单分录")
    private List<OmsTransferbillentry> omsTransferbillentryList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }

    public String getsrcsys() {
        return srcsys;
    }

    public void setsrcsys(String srcsys) {
        this.srcsys = srcsys;
    }

    public String getSourceplatformcode() {
        return sourceplatformcode;
    }

    public void setSourceplatformcode(String sourceplatformcode) {
        this.sourceplatformcode = sourceplatformcode;
    }

    public String getSourceordercode() {
        return sourceordercode;
    }

    public void setSourceordercode(String sourceordercode) {
        this.sourceordercode = sourceordercode;
    }

    public void setOrdertype(String ordertype)
    {
        this.ordertype = ordertype;
    }

    public String getOrdertype()
    {
        return ordertype;
    }
    public void setFacilitycode(String facilitycode)
    {
        this.facilitycode = facilitycode;
    }

    public String getFacilitycode()
    {
        return facilitycode;
    }
    public void setFacilityname(String facilityname)
    {
        this.facilityname = facilityname;
    }

    public String getFacilityname()
    {
        return facilityname;
    }
    public void setInventoryorganizationoutcode(String inventoryorganizationoutcode)
    {
        this.inventoryorganizationoutcode = inventoryorganizationoutcode;
    }

    public String getInventoryorganizationoutcode()
    {
        return inventoryorganizationoutcode;
    }
    public void setInventoryorganizationoutname(String inventoryorganizationoutname)
    {
        this.inventoryorganizationoutname = inventoryorganizationoutname;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getInventoryorganizationoutname()
    {
        return inventoryorganizationoutname;
    }
    public void setCostcenteroutcode(String costcenteroutcode)
    {
        this.costcenteroutcode = costcenteroutcode;
    }

    public String getCostcenteroutcode()
    {
        return costcenteroutcode;
    }
    public void setCostcenteroutname(String costcenteroutname)
    {
        this.costcenteroutname = costcenteroutname;
    }

    public String getCostcenteroutname()
    {
        return costcenteroutname;
    }
    public void setTofacilitycode(String tofacilitycode)
    {
        this.tofacilitycode = tofacilitycode;
    }

    public String getTofacilitycode()
    {
        return tofacilitycode;
    }
    public void setTofacilityname(String tofacilityname)
    {
        this.tofacilityname = tofacilityname;
    }

    public String getTofacilityname()
    {
        return tofacilityname;
    }
    public void setInventoryorganizationentercode(String inventoryorganizationentercode)
    {
        this.inventoryorganizationentercode = inventoryorganizationentercode;
    }

    public String getInventoryorganizationentercode()
    {
        return inventoryorganizationentercode;
    }
    public void setInventoryorganizationentername(String inventoryorganizationentername)
    {
        this.inventoryorganizationentername = inventoryorganizationentername;
    }

    public String getInventoryorganizationentername()
    {
        return inventoryorganizationentername;
    }
    public void setCostcenterentercode(String costcenterentercode)
    {
        this.costcenterentercode = costcenterentercode;
    }

    public String getCostcenterentercode()
    {
        return costcenterentercode;
    }
    public void setCostcenterentername(String costcenterentername)
    {
        this.costcenterentername = costcenterentername;
    }

    public String getCostcenterentername()
    {
        return costcenterentername;
    }
    public void setTradecreatedat(Date tradecreatedat)
    {
        this.tradecreatedat = tradecreatedat;
    }

    public Date getTradecreatedat()
    {
        return tradecreatedat;
    }
    public void setDeliverydate(Date deliverydate)
    {
        this.deliverydate = deliverydate;
    }

    public Date getDeliverydate()
    {
        return deliverydate;
    }
    public void setReceiptdate(Date receiptdate)
    {
        this.receiptdate = receiptdate;
    }

    public Date getReceiptdate()
    {
        return receiptdate;
    }
    public void setIscreatebill(Long iscreatebill)
    {
        this.iscreatebill = iscreatebill;
    }

    public Long getIscreatebill()
    {
        return iscreatebill;
    }
    public void setReason(String reason)
    {
        this.reason = reason;
    }

    public String getReason()
    {
        return reason;
    }

    public String getFromshopid() {
        return fromshopid;
    }

    public void setFromshopid(String fromshopid) {
        this.fromshopid = fromshopid;
    }


    public String getToshopid() {
        return toshopid;
    }

    public void setToshopid(String toshopid) {
        this.toshopid = toshopid;
    }

    public List<OmsTransferbillentry> getOmsTransferbillentryList()
    {
        return omsTransferbillentryList;
    }

    public void setOmsTransferbillentryList(List<OmsTransferbillentry> omsTransferbillentryList)
    {
        this.omsTransferbillentryList = omsTransferbillentryList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("srcsys", getsrcsys())
            .append("ordertype", getOrdertype())
            .append("facilitycode", getFacilitycode())
            .append("facilityname", getFacilityname())
            .append("inventoryorganizationoutcode", getInventoryorganizationoutcode())
            .append("inventoryorganizationoutname", getInventoryorganizationoutname())
            .append("costcenteroutcode", getCostcenteroutcode())
            .append("costcenteroutname", getCostcenteroutname())
            .append("tofacilitycode", getTofacilitycode())
            .append("tofacilityname", getTofacilityname())
            .append("inventoryorganizationentercode", getInventoryorganizationentercode())
            .append("inventoryorganizationentername", getInventoryorganizationentername())
            .append("costcenterentercode", getCostcenterentercode())
            .append("costcenterentername", getCostcenterentername())
            .append("tradecreatedat", getTradecreatedat())
            .append("deliverydate", getDeliverydate())
            .append("receiptdate", getReceiptdate())
            .append("remark", getRemark())
            .append("createtime", getCreatetime())
            .append("iscreatebill", getIscreatebill())
            .append("reason", getReason())
                .append("fromshopid",getFromshopid())
                .append("toshopid",getToshopid())
            .append("omsTransferbillentryList", getOmsTransferbillentryList())
            .toString();
    }
}
